package org.jeecgframework.web.service;
import org.jeecgframework.core.common.model.json.AjaxJson;
import org.jeecgframework.core.common.service.CommonService;
import org.jeecgframework.web.system.pojo.base.ZyEquipmentChangeEntity;

import java.io.Serializable;
import java.util.List;
import java.util.Map;

import javax.servlet.http.HttpServletRequest;

public interface ZyEquipmentChangeServiceI extends CommonService{
	
 	public <T> void delete(T entity);
 	
 	public <T> Serializable save(T entity);
 	
 	public <T> void saveOrUpdate(T entity);
 	
 	/**
	 * 默认按钮-sql增强-新增操作
	 * @param id
	 * @return
	 */
 	public boolean doAddSql(ZyEquipmentChangeEntity t);
 	/**
	 * 默认按钮-sql增强-更新操作
	 * @param id
	 * @return
	 */
 	public boolean doUpdateSql(ZyEquipmentChangeEntity t);
 	/**
	 * 默认按钮-sql增强-删除操作
	 * @param id
	 * @return
	 */
 	public boolean doDelSql(ZyEquipmentChangeEntity t);

	/**@author xiul
	 * 2016-4-21 下午5:30:55
	 * Description 流程 - 保存变更申请 启动流程
	 * @param zyEquipmentChange
	 */
	public String doStartProcess(ZyEquipmentChangeEntity zyEquipmentChange,String egId);

	/**@author xiul
	 * 2016-4-22 上午11:11:42
	 * Description 流程 - 巴可主管审批设备变更
	 * @param request
	 */
	public void doApproval(HttpServletRequest request);

	/**@author xiul
	 * 2016-8-5 下午3:49:26
	 * Description APP - 我的申请 列表
	 */
	public List<Map<String, Object>> queryAppEgEsChangeListData();

	public void queryIpInfoByPlanId(HttpServletRequest req, AjaxJson j);
}
